package com.whfp.afs330h_sdk.utils;


import android.util.Log;

public class AFS330H_XY_bean {
    public static String TAG = "AFS330H_XY_bean";
    /**
     * 破冰2号特征相关
     */
    //破冰2号设备用到的服务
    public static String AFS330H_SERVICE_UUID = "0000fff0-0000-1000-8000-00805f9b34fb";
    //破冰2号设备用到的通知特征
    public static String AFS330H_CHARACTERISTIC_NOTIFY_UUID = "0000fff1-0000-1000-8000-00805f9b34fb";
    //破冰2号设备用到的写入特征
    public static String AFS330H_CHARACTERISTIC_WRITE_UUID = "0000fff2-0000-1000-8000-00805f9b34fb";

    /**
     * 破冰二合一特征相关
     */
    //破冰二合一设备用到的服务
    public static String PBEHY_SERVICE_UUID = "0000a002-0000-1000-8000-00805f9b34fb";
    //破冰二合一设备用到的通知特征
    public static String PBEHY_CHARACTERISTIC_NOTIFY_UUID = "0000c305-0000-1000-8000-00805f9b34fb";
    //破冰二合一设备用到的写入特征
    public static String PBEHY_CHARACTERISTIC_WRITE_UUID = "0000c303-0000-1000-8000-00805f9b34fb";


    /**
     * 指令 产品模块功能 如：30 01 01
     */
    public static final String instruction1 = "300101";        //获取设备信息
    public static final String instruction2 = "300102";        //获取设备状态
    public static final String instruction3 = "300201";        //读取ID卡
    public static final String instruction4 = "300301";        //开始检测
    public static final String instruction5 = "300202";        //加载ID卡
    public static final String instruction6 = "300203";        //删除项目
    public static final String instruction7 = "300204";        //删除所有

    /**
     * 对比值
     */
    //获取设备信息
    public static String DB_KHDMBPP = "00";             //客户代码不匹配
    public static String DB_KHDMPP = "01";              //客户代码匹配
    //获取设备状态
    public static String DB_WCD = "00";                 //未充电
    public static String DB_CDZ = "01";                 //充电中
    public static String DB_YCM = "10";                 //已充满
    public static String DB_IDKWCR = "00";              //ID卡未插入
    public static String DB_IDKYCR = "01";              //ID卡已插入
    public static String DB_SJKYCR = "11";              //已插入试剂卡
    public static String DB_SJKWCR = "10";              //未插入试剂卡
    //读取ID卡/加载ID卡
    public static String DB_IDKDQSB = "00";             //ID卡读取失败
    public static String DB_IDKDQ_WCR = "01";           //读取时未插入ID卡
    public static String DB_XMJYCW = "10";              //项目校验错误
    public static String DB_IDKDQCG = "11";             //ID卡读取成功
    public static String DB_WCC = "00";                 //未储存
    public static String DB_YCC = "01";                 //已储存
    public static String DB_SJCDCW = "01";              //数据长度错误
    //删除项目
    public static String DB_WZDPPXMK = "00";            //未找到匹配项目卡
    public static String DB_YSCPPXMK = "01";            //已删除匹配项目卡
    //测试
    public static String DB_WFW = "00";                 //未复位
    public static String DB_WCK = "10";                 //未插卡
    public static String DB_YCK = "11";                 //已插卡
    public static String DB_WPPXMK = "00";              //未匹配项目卡
    public static String DB_XMKSJCW = "01";             //项目卡数据错误
    public static String DB_YPPXMK = "11";              //已匹配项目卡


    public String getInstruction1() {
//        Log.i(TAG,"获取设备信息：" + instruction1 + getQydm() + getKhdm_g() + getKhdm_d());
        return instruction1 + getQydm() + getKhdm_g() + getKhdm_d();
    }

    public String getInstruction2() {
//        Log.i(TAG,"获取设备状态：" + instruction2);
        return instruction2 + getSfjcsjkzt();
    }

    public String getInstruction3() {
//        Log.i(TAG,"读取ID卡：" + instruction3+getSffgzjxm());
        return instruction3 + getSffgzjxm();
    }

    public String getInstruction4() {
        Log.i(TAG, "测试：" + instruction4 + getSfjcsjkzt() + getYblx() + getTmcd() + getTm());
        return instruction4 + getSfjcsjkzt() + getYblx() + getTmcd() + getTm();
    }

    public String getInstruction5() {
        Log.i(TAG, "加载ID卡：" + instruction5 + getSffgzjxm());
        return instruction5 + getSffgzjxm();
    }

    public String getInstruction6(String tmcd, String tm) {
        Log.i(TAG, "删除项目：" + instruction6 + tmcd + tm);
        return instruction6 + tmcd + tm;
    }

    public String getInstruction() {
        Log.i(TAG, "删除所有项目：" + instruction7);
        return instruction7;
    }

    //区域代码 1字节 默认00
    String qydm = "00";
    //客户代码低位 1字节 默认A3
    String khdm_d = "A3";
    //客户代码高位 1字节 默认00
    String khdm_g = "00";
    //是否检测试剂卡状态（01:不检测试剂卡状态 0A:检测试剂卡状态） 1字节  默认不检测
    String sfjcsjkzt = "0A";
    //样本类型（默认为00：毛发） 1字节  默认00
    String yblx = "00";
    //条码长度 1字节 默认05
    String tmcd = "05";
    //条码 tmcd字节 默认3333343138
    String tm = "3333343138";
    //读取或加载id卡是否覆盖最旧项目  00 不覆盖最旧项目，存满后提示 01 覆盖最旧项目
    String sffgzjxm = "01";

    public String getQydm() {
        return qydm;
    }

    public void setQydm(String qydm) {
        this.qydm = qydm;
    }

    public String getKhdm_d() {
        return khdm_d;
    }

    public void setKhdm_d(String khdm_d) {
        this.khdm_d = khdm_d;
    }

    public String getKhdm_g() {
        return khdm_g;
    }

    public void setKhdm_g(String khdm_g) {
        this.khdm_g = khdm_g;
    }

    public String getSfjcsjkzt() {
        return sfjcsjkzt;
    }

    public void setSfjcsjkzt(String sfjcsjkzt) {
        this.sfjcsjkzt = sfjcsjkzt;
    }

    public String getYblx() {
        return yblx;
    }

    public void setYblx(String yblx) {
        this.yblx = yblx;
    }

    public String getTmcd() {
        return tmcd;
    }

    public void setTmcd(String tmcd) {
        this.tmcd = tmcd;
    }

    public String getTm() {
        return tm;
    }

    public void setTm(String tm) {
        this.tm = tm;
    }

    public String getSffgzjxm() {
        return sffgzjxm;
    }

    public void setSffgzjxm(String sffgzjxm) {
        this.sffgzjxm = sffgzjxm;
    }

    public AFS330H_XY_bean() {
    }
}
